home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
dev
/
lang
/
uc_0_30.lha
/
u
/
tca
/
tc0019.ua
< prev
next >
Wrap
Text File
|
1996-10-30
|
998b
|
86 lines
`**********************
`* P R O J E C T < U >
`*
`* Author and copyright
`* (c) 1996
`* Paul van der Valk
`*
`* file: tc0019.ua
`*
`* Tests AllocClearMem(), FreeMem() & AvailMem()
`*
#1 .H 2 0 0 0
#2 .M "tc0019" 20 10 0 0
#10 >11 .V "Avail_1"
#11 >12 .V "Avail_2"
#12 >13 .V "Avail_3"
#13 >14 .V "Size"
#14 .V "MemBlock"
#20 >30 .a 13 21
#21 .n 1000
#30 >32 .a 10 31
#31 .c 19 0
#32 >35 .a 14 33
#33 .c 17 34
#34 .v 13
#35 .i 36 50 40
#36 .v 14
#40 .c 2 41
#41 .s "Couldn't allocate memory"
#50 >52 .a 11 51
#51 .c 19 0
#52 >54 .c 18 53
#53 .v 14
#54 >60 .a 12 55
#55 .c 19 0
#60 >62 .c 1 61
#61 .s "Allocated "
#62 >64 .c 4 63
#63 .v 13
#64 >70 .c 2 65
#65 .s " (cleared) bytes"
#70 >72 .c 1 71
#71 .s "Available before allocation : "
#72 >74 .c 4 73
#73 .v 10
#74 >80 .c 3 0
#80 >82 .c 1 81
#81 .s "Available after allocation : "
#82 >84 .c 4 83
#83 .v 11
#84 >90 .c 3 0
#90 >92 .c 1 91
#91 .s "Available after freeing : "
#92 >95 .c 4 93
#93 .v 12
#95 .c 3 0